{% load tags %}
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body style="margin: 0 0">
    {% title request True %}
    <table style="margin-top:  80px">
        <thead>
            <tr>
                <th>店铺名称</th>
                <th>所在城市</th>
                <th>人均消费</th>
                <th>评分</th>
            </tr>
        </thead>
        <tbody>
            {% for foo in result %}
                <tr>
                    <td>{{ foo.title }}</td>
                    <td>{{ foo.city }}</td>
                    <td>{{ foo.avgPrice }}</td>
                    <td>{{ foo.score }}</td>
                    <td>
                        <a href="{% url "select:detail" foo.shopId %}">详细信息</a>
                    </td>
                </tr>
            {% endfor %}
        </tbody>
    </table>
</body>
</html>